package org.fuys.coder.domain.user.repository;

import org.fuys.coder.common.entity.Pair;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.user.repository
 * @className: IUserOperationRepository
 * @author: WangJing
 * @description: 用户操作仓储服务
 * @date: 2024/9/6 20:22
 * @version: 1.0
 */
public interface IUserOperationRepository {
    void setNewFollowerCache(String redisKey, List<Pair<Integer, Integer>> userNoticed, int i, TimeUnit days);

    List<Object> getFollowerCache(String redisKey);

    void addFollowerCache(String redisKey, Integer authorId);
}
